home *** CD-ROM | disk | FTP | other *** search
- property spriteNum, preTab, postTab
-
- on getPropertyDescriptionList
- description = [:]
- addProp(description, #preTab, [#default: -1, #format: #integer, #comment: "Backtab:"])
- addProp(description, #postTab, [#default: -1, #format: #integer, #comment: "Tab:"])
- return description
- end
-
- on keyDown me
- if the key = TAB then
- if the shiftDown then
- the keyboardFocusSprite = preTab
- sendSprite(preTab, #amIpreLegal)
- else
- the keyboardFocusSprite = postTab
- sendSprite(postTab, #amIpostLegal)
- end if
- end if
- pass()
- end
-
- on amIpreLegal me
- if (sprite(spriteNum).locV <= (0 - sprite(spriteNum).height)) or (sprite(spriteNum).locV >= 600) then
- the keyboardFocusSprite = preTab
- sendSprite(preTab, #amIpreLegal)
- end if
- end
-
- on amIpostLegal me
- if (sprite(spriteNum).locV <= (0 - sprite(spriteNum).height)) or (sprite(spriteNum).locV >= 600) then
- the keyboardFocusSprite = postTab
- sendSprite(postTab, #amIpostLegal)
- end if
- end
-